package com.bishe.demo.modules.other.service;

import com.bishe.demo.modules.common.entity.ResultEntity;
import com.bishe.demo.modules.common.entity.SearchBean;
import com.bishe.demo.modules.other.entity.Message;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface MessageService {
    ResultEntity<Message> insertMessage(Message message);

    ResultEntity<Message> updateMessage(Message message);

    ResultEntity<Message> deleteMessageByMessageId(int messageId);

    Message getMessageByMessageId(int messageId);

    List<Message> getMessagesByUserId(int userId);

    List<Message> getMessagesBySceneryId(int sceneryId);

    PageInfo<Message> getMessagesBySearchBean(SearchBean searchBean);
}
